home *** CD-ROM | disk | FTP | other *** search
/ Freelog 125 / Freelog_MarsAvril2015_No125.iso / ViePratique / gnucash / gnucash-2.6.5-setup.exe / {app} / share / themes / Industrial / gtk-2.0 / gtkrc
Text File  |  2009-04-17  |  8KB  |  309 lines

  1. gtk-color-scheme = "bg_color: #f6f6f6\nfg_color: #000\nbase_color: #fff\ntext_color: #000\nselected_bg_color: #6484a4\nselected_fg_color: #fff\ntooltip_bg_color: #e5e5e5\ntooltip_fg_color: #000000"
  2.  
  3. style "industrial-default"
  4. {
  5.   xthickness = 1
  6.   ythickness = 1
  7.  
  8.  
  9.   GtkWidget::interior_focus = 1
  10.   GtkButton::default_border = { 3, 3, 3, 3 }
  11.   GtkButton::default_outside_border = { 3, 3, 3, 3 }
  12.   GtkRange::trough_border = 0
  13.  
  14.   GtkWidget::focus_padding = 1
  15.  
  16.   GtkPaned::handle_size = 7
  17.   
  18.   GtkRange::slider_width = 15
  19.   GtkRange::stepper_size = 15
  20.   GtkScrollbar::min_slider_length = 30
  21.   GtkCheckButton::indicator_size = 13
  22.   GtkRadioButton::indicator_size = 13
  23.   GtkMenuBar::internal-padding = 0
  24.   
  25.   WnckTasklist::fade-opacity = 1
  26.   WnckTasklist::fade-overlay-rect = 0
  27.   WnckTasklist::fade-loop-time = 2
  28.  
  29.   GtkButton::child_displacement_x = 0
  30.   GtkButton::child_displacement_y = 1
  31.  
  32.   GtkEntry::progress-border = { 0, 0, 0, 0 }
  33.  
  34.   GtkMenuItem::selected_shadow_type = GTK_SHADOW_IN
  35.  
  36.   GtkRange::activate-slider = 1
  37.  
  38.   # The following line hints to gecko (and possibly other appliations)  
  39.   # that the entry should be drawn transparently on the canvas.
  40.   # Without this, gecko will fill in the background of the entry.           
  41.   GtkEntry::honors-transparent-bg-hint = 1
  42.  
  43.  
  44.   # color definitions
  45.   bg[NORMAL]        = @bg_color
  46.   bg[PRELIGHT]        = shade (1.1, @bg_color)
  47.   bg[ACTIVE]        = shade (0.85, @bg_color)
  48.   bg[SELECTED]        = mix (0.65, @selected_bg_color, @bg_color)
  49.   bg[INSENSITIVE]    = shade (0.85, @bg_color)
  50.  
  51.   fg[NORMAL]        = @fg_color
  52.   fg[PRELIGHT]        = @fg_color
  53.   fg[ACTIVE]        = @fg_color
  54.   fg[SELECTED]        = @selected_fg_color
  55.   fg[INSENSITIVE]    = mix (0.4, @fg_color, shade (0.85, @bg_color)) #shaded to bg[INSENSITIVE]
  56.  
  57.   base[NORMAL]        = @base_color
  58.   base[PRELIGHT]    = @base_color #XXX
  59.   base[ACTIVE]        = mix (0.45, @selected_bg_color, @base_color) #b6c9cf
  60.   base[SELECTED]    = @selected_bg_color
  61.   base[INSENSITIVE]    = mix (0.95, @base_color, @text_color)
  62.  
  63.   text[NORMAL]        = @text_color
  64.   text[PRELIGHT]    = @text_color #XXX
  65.   text[ACTIVE]        = @selected_fg_color
  66.   text[SELECTED]    = @selected_fg_color
  67.   text[INSENSITIVE]    = mix (0.5, @text_color, @base_color)
  68.  
  69. #  bg[NORMAL]        = "#f6f6f6"
  70. #  bg[PRELIGHT]        = "#ffffff"
  71. #  fg[PRELIGHT]      = "#202020"
  72. #  bg[ACTIVE]        = "#d9d9d9"
  73. #  bg[INSENSITIVE]   = "#d9d9d9"
  74. #  bg[SELECTED]      = "#99a6bf"
  75. #
  76. #  base[SELECTED]    = "#6484a4"
  77. #  text[SELECTED]    = "#ffffff"
  78. #    #this is selected item without focus:
  79. #  base[ACTIVE]      = "#b6c9cf"
  80. #  text[INSENSITIVE] = "#757575"
  81. #    
  82. #    #defaults 
  83. #  #base[NORMAL]  = "#b6c9cf"
  84. #  #text[NORMAL]  = "#000000"
  85. #
  86.   engine "industrial"
  87.   {
  88.     # Set a hint to disable backward compatibility fallbacks.
  89.     hint = "use-hints"
  90.   }
  91. }
  92.  
  93. # Style to apply an exterior forcus to GtkEntry
  94. style "industrial-exterior-focus"
  95. {
  96.     GtkWidget::interior-focus = 0
  97.     GtkWidget::focus-line-width = 0
  98. }
  99.  
  100. # Add trough side details to GtkScale
  101. style "industrial-scale"
  102. {
  103.     GtkRange::trough-side-details = 1
  104. }
  105.  
  106. # Style for the entry progress bar -- ie. change the colors
  107. style "industrial-entry"
  108. {
  109.   xthickness = 2
  110.   ythickness = 2
  111.  
  112.   bg[SELECTED] = mix (0.4, @selected_bg_color, @base_color)
  113.   fg[SELECTED] = @text_color
  114. }
  115.  
  116. # generic squared buttons style, used for the tasklist (treeview is in the extra treeview style)
  117. style "industrial-squared"
  118. {
  119.   engine "industrial" 
  120.   {
  121.     rounded_buttons = FALSE
  122.   }
  123. }
  124.  
  125. style "industrial-wide"
  126. {
  127.   xthickness = 2
  128.   ythickness = 2
  129. }
  130.  
  131. # style to remove the border around the progress bar
  132. style "industrial-progress"
  133. {
  134.   xthickness = 0
  135.   ythickness = 0
  136. }
  137.  
  138. # make scrollbar arrows lighter
  139. style "industrial-arrows"
  140. {
  141.   fg[NORMAL] = mix (0.8, @fg_color, @bg_color)
  142. }
  143.  
  144. # menuitems
  145. style "industrial-menuitem"
  146. {
  147.   xthickness = 3
  148.   ythickness = 3
  149.  
  150.   bg[PRELIGHT]  = @selected_bg_color
  151.   bg[SELECTED]  = @selected_bg_color
  152.   fg[PRELIGHT]  = @selected_fg_color
  153.   fg[SELECTED]  = @selected_fg_color
  154. }
  155.  
  156. style "industrial-menubar"
  157. {
  158.   xthickness = 3
  159.   ythickness = 3
  160. }
  161.  
  162. style "industrial-tree-header"
  163. {
  164.   engine "industrial" 
  165.   {
  166.     hint = "treeview-header"
  167.   }
  168.   xthickness = 2
  169.   ythickness = 2
  170. }
  171.  
  172. style "industrial-tooltips"
  173. {
  174.   xthickness = 4
  175.   ythickness = 4
  176.   bg[NORMAL] = @tooltip_bg_color
  177.   fg[NORMAL] = @tooltip_fg_color
  178. }
  179.  
  180. style "industrial-druid"
  181. {
  182.   bg[SELECTED] = @selected_bg_color
  183. }
  184.  
  185. style "metacity-frame"
  186. {
  187.  
  188.     # Normal base color
  189.      bg[NORMAL]      = @bg_color
  190.  
  191.     # Unfocused title background color
  192.     bg[INSENSITIVE]    = @bg_color
  193.  
  194.     # Unfocused title text color
  195.     fg[INSENSITIVE]    = mix (0.2, @fg_color, @bg_color) # "#808080"
  196.  
  197.     # Focused icon color
  198.     fg[NORMAL]    = mix (0.8, @fg_color, @bg_color) # same as scrollbar arrow color
  199.  
  200.     # Focused title background color
  201.     bg[SELECTED]    = @selected_bg_color
  202.     
  203.     # Focused title text color
  204.     fg[SELECTED]    = @selected_fg_color
  205. }
  206.  
  207. style "industrial-spinbutton"
  208. {
  209.     engine "industrial"
  210.     {
  211.         hint    = "spinbutton"
  212.     }
  213. }
  214.  
  215. style "industrial-comboboxentry"
  216. {
  217.     engine "industrial"
  218.     {
  219.         hint    = "comboboxentry"
  220.     }
  221. }
  222.  
  223. # default style
  224. class "GtkWidget" style "industrial-default"
  225.  
  226. # wide
  227. class "GtkNotebook"   style "industrial-wide"
  228. class "GtkButton"     style "industrial-wide"
  229. class "GtkRange"      style "industrial-wide"
  230. class "GtkMenu"       style "industrial-wide"
  231. class "GtkFrame"      style "industrial-wide"
  232. class "GtkStatusbar"  style "industrial-wide"
  233. class "GtkEntry"      style "industrial-entry"
  234.  
  235. class "GtkEntry"      style "industrial-exterior-focus"
  236. class "GtkSpinButton" style "industrial-spinbutton"
  237. class "GtkScale"      style "industrial-scale"
  238.  
  239. class "GtkVScrollbar" style "industrial-arrows"
  240. class "GtkHScrollbar" style "industrial-arrows"
  241.  
  242. widget_class "*<GtkComboBoxEntry>.*" style "industrial-comboboxentry"
  243. widget_class "*<GtkCombo>.*" style "industrial-comboboxentry"
  244.  
  245. # treeview
  246. widget_class "*.<GtkTreeView>.GtkButton" style "industrial-tree-header"
  247. widget_class "*.<GtkList>.GtkButton"     style "industrial-tree-header"
  248. widget_class "*.<GtkCList>.GtkButton"    style "industrial-tree-header"
  249. widget_class "*.<ETree>.*"               style "industrial-tree-header"
  250. widget_class "*.<ETable>.*"              style "industrial-tree-header"
  251.  
  252. # menuitems and interior
  253. widget_class "*<GtkMenuItem>*" style "industrial-menuitem"
  254.  
  255. widget_class "*.<GtkProgress>"   style "industrial-progress"
  256.  
  257. # druide
  258. widget_class "*GnomeDruidPage*" style "industrial-druid"
  259.  
  260. widget "gtk-tooltip*" style "industrial-tooltips"
  261.  
  262. widget "*.tasklist-button" style "industrial-squared"
  263.  
  264. class "MetaFrames" style "metacity-frame"
  265.  
  266.  
  267. # Work around for http://bugzilla.gnome.org/show_bug.cgi?id=382646
  268. # Note that the work around assumes that the combobox is _not_ in
  269. # appears-as-list mode.
  270. # This style does not affect GtkComboBoxEntry, it does have an effect
  271. # on comboboxes in appears-as-list mode though.
  272. style "industrial-text-is-fg-color-workaround"
  273. {
  274.     text[NORMAL]        = @fg_color
  275.     text[PRELIGHT]      = @fg_color
  276.     text[SELECTED]      = @selected_fg_color
  277.     text[ACTIVE]        = @fg_color
  278.     text[INSENSITIVE]   = darker (@bg_color)
  279. }
  280. widget_class "*.<GtkComboBox>.<GtkCellView>"   style "industrial-text-is-fg-color-workaround"
  281.  
  282. style "industrial-menuitem-text-is-fg-color-workaround"
  283. {
  284.     text[NORMAL]        = @fg_color
  285.     text[PRELIGHT]      = @selected_fg_color
  286.     text[SELECTED]      = @selected_fg_color
  287.     text[ACTIVE]        = @fg_color
  288.     text[INSENSITIVE]   = darker (@bg_color)
  289. }
  290. widget "*.gtk-combobox-popup-menu.*"   style "industrial-menuitem-text-is-fg-color-workaround"
  291.  
  292. # Work around the usage of GtkLabel inside GtkListItems to display text.
  293. # This breaks because the label is shown on a background that is based on the
  294. # base color set.
  295. style "industrial-fg-is-text-color-workaround"
  296. {
  297.     fg[NORMAL]      = @text_color
  298.     fg[PRELIGHT]    = @text_color
  299.     fg[ACTIVE]      = @selected_fg_color
  300.     fg[SELECTED]    = @selected_fg_color
  301.     fg[INSENSITIVE] = darker (@bg_color)
  302. }
  303. widget_class "*<GtkListItem>*" style "industrial-fg-is-text-color-workaround"
  304. # The same problem also exists for GtkCList and GtkCTree
  305. # Only match GtkCList and not the parent widgets, because that would also change the headers.
  306. widget_class "*<GtkCList>" style "industrial-fg-is-text-color-workaround"
  307.  
  308.  
  309.